<?php

namespace app\libs\orm;

use wicked\tools\Inflector;

class Entity extends Record
{

    protected static $table;

    public function __construct($data = [], $table)
    {
        parent::__construct($data);
        static::$table = Inflector::tablename($table);
    }

    protected static function table()
    {
        return static::$table;
    }

}
